package org.zizi.service;

import javax.servlet.ServletException;

import org.directwebremoting.servlet.DwrServlet;
import org.zizi.Launcher;

public class DwrActionServlet extends DwrServlet
{
	private static final long serialVersionUID = 1L;

	private Launcher launcher;
	
	public void init() throws ServletException
	{
		super.init();
		
		try
		{
			launcher = new Launcher();
			launcher.startup();
		}
		catch(Exception e)
		{
		}
	}
	
	public void destroy()
	{
		launcher.shutdown();
		super.destroy();
	}
}
